package com.webservice.xmloper.activeState;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class ActiveStateXmlOper {
	
	/**
	 * 解析活动状态xml文件
	 */
	public static ActiveStiveXml parseActiveStateXml(String xmlString){
		XStream xs = new XStream();
		xs.processAnnotations(ActiveStiveXml.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (ActiveStiveXml) xs.fromXML(myIn);
	}
}
